﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="pwblog.Web.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>PW Blog || Đăng nhập</title>
    <link href="Styles/bloglayout.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="content">
        <div id="header">
                <div id="h_logo" class="center-align half">
                    <a href="/web/default.aspx"><span id="logo"></span><span id="motto">BUILD YOUR WEB, IMPROVE YOUR KNOWLEDGE.</span></a> <!-- Sửa lại logo thành background của div -->
                    <fieldset id="login-form">
                        <legend>Đăng nhập</legend>
                            <span class="failureNotification">
                                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                                <asp:Label class="error" ID="result" runat="server" Text=""></asp:Label>
                            </span>
                        <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                            ValidationGroup="LoginUserValidationGroup"/>
                        <table>
                            <tr>
                                <td><asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="tbUserName">Tên đăng nhập:</asp:Label></td>
                                <td>
                            <asp:TextBox ID="tbUserName" runat="server" CssClass="textEntry"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="tbUserName" 
                                    CssClass="failureNotification" ErrorMessage="Yêu cầu tên đăng nhập" ToolTip="Yêu cầu tên đăng nhập" 
                                    ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="tbPassword">Mật khẩu:</asp:Label></td>
                                <td><asp:TextBox ID="tbPassword" runat="server" CssClass="passwordEntry" 
                                TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="tbPassword" 
                                    CssClass="failureNotification" ErrorMessage="Yêu cầu mật khẩu" ToolTip="Yêu cầu mật khẩu" 
                                    ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td colspan="2"><asp:CheckBox ID="RememberMe" runat="server"/>
                                <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Ghi nhớ đăng nhập của tôi.</asp:Label></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Button ID="btnLogin" runat="server" CommandName="Login" Text="Log In" 
                                        ValidationGroup="LoginUserValidationGroup" onclick="btnLogin_Click"/>
                                    <asp:LinkButton ID="forgotpw" runat="server" Text="Tôi bị quên mật khẩu" 
                                        onclick="forgotpw_Click" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
        </div>
    </div>
    </form>
</body>
</html>
